package com.yanqingshan.platform.module.sys.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 功能描述:
 *
 * @author yanqs
 * @since 2023-05-13
 */
@ApiModel("修改密码 请求参数")
@Data
public class ChangePasswordReqVO implements java.io.Serializable {

    @NotEmpty(message = "当前密码不能为空")
    @ApiModelProperty(value = "当前密码")
    private String currentPassword;

    @NotEmpty(message = "新密码不能为空")
    @Length(min = 6, max = 32, message = "密码长度为 6-12 位")
    @ApiModelProperty(value = "新密码")
    private String newPassword;

    @NotEmpty(message = "确认新密码不能为空")
    @Length(min = 6, max = 32, message = "密码长度为 6-12 位")
    @ApiModelProperty(value = "确认新密码")
    private String confirmNewPassword;

}
